/*
 * MathProcesses.h
 *
 *  Created on: Feb 14, 2012
 *      Author: nhatuan
 */

#ifndef MATHPROCESSES_H_
#define MATHPROCESSES_H_
#include <math.h>

#define length(a) ( sizeof ( a ) / sizeof ( *a ) )

float ** calculateCovarianceMatrix(float* x, float *y, float xm, float ym, int length);
float ** calculateCorrelationMatrix(float *x, float *y, float xm, float ym, int length);
float calculateDeterminant(float ** matrix);
float ** calculateInverseMatrix(float ** matrix);

#endif /* MATHPROCESSES_H_ */
